package com.zbxx.container.websocket.repository;

import com.zbxx.container.websocket.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 万仁杰
 * @date 2019/05/22
 */

@Mapper
public interface MybatisMapper {

    @Select("select * from user where account = #{account}")
    User getUserByAccount(String account);

    @Insert("insert into user (account,username,password) values (#{account},#{username},#{password})")
    int insertUser(User user);

}
